package mode

type OriginMetrics struct {
	Name               string                            `yaml:"name"`
	ResourceAttributes map[string]ResourceAttributesItem `yaml:"resource_attributes"`
	Attributes         map[string]AttributesItem         `yaml:"attributes"`
	Metrics            map[string]MetricsItem            `yaml:"metrics"`
}

type ResourceAttributesItem struct {
	Description string `yaml:"description"`
	Type        string `yaml:"type"`
}

type AttributesItem struct {
	Description string   `yaml:"description"`
	Enum        []string `yaml:"enum"`
	Value       string   `yaml:"value"`
}
type MetricsItem struct {
	Description string            `yaml:"description"`
	Unit        interface{}       `yaml:"unit"`
	Attributes  []string          `yaml:"attributes"`
	Enabled     bool              `yaml:"enabled"`
	Gauge       map[string]string `yaml:"gauge"`
	Sum         SumItem           `yaml:"sum"`
}

type SumItem struct {
	Monotonic   bool   `yaml:"monotonic"`
	Aggregation string `yaml:"aggregation"`
	valueType   int    `yaml:"value_type"`
}
